<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean"%>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html"%>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic"%>
<%@ taglib uri="http://struts.apache.org/tags-tiles" prefix="tiles"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>湖北康正物业服务有限公司</title>
<LINK href="style/css.css" type="text/css" rel="stylesheet">
<script type="text/javascript">

	function checkForm() {
		var deptId = document.getElementById("deptId").value;
		var deptName = document.getElementById("deptName").value;
				
		if (deptId == 0) {
			alert("请输入部门编号！");
			return false;
		}
		if (deptName == 0) {
			alert("请输入部门名称！");
			return false;
		}
	}
</script>
</head>
<body>
<html:form action="department.do?method=updateSave" method="post"
	onsubmit="return checkForm();">
	<table class="tableline" cellspacing="1" cellpadding="0" width="80%"
		border="0" align="center">
		<html:hidden property="id" value="${dept.id}" />
		<tr>
			<td class="STYLE4" colspan="2" height="30" align="center"
				bgcolor="#ffffff">修改部门信息</td>
		</tr>
		<tr>
			<td width="40%" height="26" align="right" bgcolor="#ffffff">部门代码:</td>
			<td bgcolor="#ffffff">&nbsp;<html:text property="deptId"
				value="${dept.deptId }" /><font color="red">${deptIdError
			}${deptIdRequest }</font></td>
		</tr>
		<tr>
			<td height="26" align="right" bgcolor="#ffffff">部门名称:</td>
			<td bgcolor="#ffffff">&nbsp;<html:text property="deptName"
				value="${dept.deptName }" /> &nbsp;<html:submit value=" 修改 " />&nbsp;<font
				color="red">${deptNameError }</font></td>
		</tr>
	</table>
</html:form>
</body>
</html>